package org.jeecg.modules.online.cgform.model;

import lombok.Data;
import org.jeecg.modules.online.cgform.util.CgformUtil;

@Data
public class OnlColumn {

    private String title;

    private String dataIndex;

    private String align;

    /**
     *
     */
    private String customRender;

    private ScopedSlots scopedSlots;

    /** href链接 */
    private String hrefSlotName;

    private boolean sorter = false;

    public OnlColumn(){}

    /**
     * 构造器
     * @param title
     * @param dataIndex
     */
    public OnlColumn(String title,String dataIndex){
        this.align = CgformUtil.COLUMN_ALIGN_CENTER;
        this.title = title;
        this.dataIndex = dataIndex;
    }

}
